import java.util.*;

/**
 * The class, which extend the super class Publication, represent a Conference Paper.
 * 
 * @author (your name)
 * @version (a version number or a date)
 */
public class ConferencePaper extends Publications {

	private String bookTitle;
	/**
	 * Construct a ConferencePaper object with the specified list of author, title, 
     * year of publication, ISSN code, ISBN code and book title.
     * The ISSN code must be a numeric string of 8 character.
     * The ISBN code must be a numeric string of 13 character
     * ISSN and ISBN code can also be initialized at null.
     * 
	 * @param theAuthors the list of author object.
     * @param aTitle the title of conference paper.
     * @param aYear the year of publication.
     * @param aIssn the ISSN code. 
     * @param aIsbn the ISBN code.
	 * @param aBookTitle the title of the book.
	 */
	public ConferencePaper(List<Author> theAuthors, String aTitle, int aYear,
			String aIssn, String aIsbn, String aBookTitle) {
		super(theAuthors, aTitle, aYear, aIssn, aIsbn);
		if (!aBookTitle.equals(""))
			this.bookTitle = aBookTitle;
		else 
			throw new IllegalArgumentException();
	}
	/**
	 * Return the title of the book.
	 * 
	 * @return the book title.
	 */
	public String getBookTitle() {
		return bookTitle;
	}

	@Override
	/**
     * Returns the String representation of the conference paper.
	 * 
	 * @return the string representation.
     */	
	public String toString() {
		return "ConferencePaper [bookTitle=" + bookTitle + ", "+ super.toString()
				+ "]";
	}
}
